import request from "@/utils/request";

// 查询工资规则列表
export function listBizGongziSetting(query) {
  return request({
    url: "/biz/bizGongziSetting/list",
    method: "get",
    params: query,
  });
}

// 查询工资规则详细
export function getBizGongziSetting(id) {
  return request({
    url: "/biz/bizGongziSetting/" + id,
    method: "get",
  });
}

// 新增工资规则
export function addBizGongziSetting(data) {
  return request({
    url: "/biz/bizGongziSetting",
    method: "post",
    data: data,
  });
}

// 修改工资规则
export function updateBizGongziSetting(data) {
  return request({
    url: "/biz/bizGongziSetting",
    method: "put",
    data: data,
  });
}

// 删除工资规则
export function delBizGongziSetting(id) {
  return request({
    url: "/biz/bizGongziSetting/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizGongziSetting/findMaxSort",
    method: "get",
  });
}
// 导出工资规则
export function exportBizGongziSetting(query) {
  return request({
    url: "/biz/bizGongziSetting/export",
    method: "get",
    params: query,
  });
}
